Rails.application.routes.draw do
  # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
  root 'home#index'
  resources :home
  get 'gyfq', to: "home#gongyue"
  get 'content', to: "home#content"
  get 'fqr', to: "home#fqr"
  get 'zyxy', to: "home#zyxy"
  get 'hdlist', to: "home#hdlist"
  get 'articles', to: "articles#articles"
  get 'article', to: "articles#article"
  resources :members do 
  	
  end

  resources :activities
  post 'create_activity', to: "activities#create_activity"
  post 'create_member', to: "members#create_member"
  resources :businesses
  post 'create_business', to: "businesses#create_business"
  resources :trainings
  post 'create_training', to: "trainings#create_training"
end
